<if condition="$show_post">
    <div style="margin-bottom: 10px;display: none" class="weibo_content weibo-content-post weibo_post_box" id="send_box">

        <div class="weibo_content_p">
            <div class="row">
                <div class="col-xs-10" style="padding-left: 0;padding-right: 0;height: 120px;">
                    <div id="input_tip" class="input-tip">
                        <div class=" show_num_quick ">{:modC('WEIBO_NUM',140,'WEIBO')}/{:modC('WEIBO_NUM',140,'WEIBO')}</div>
                    </div>
                    <textarea class="form-control weibo-word" id="weibo_content" style="height: 6em;"
                                 placeholder="{:modC('WEIBO_INFO',L('_TIP_SOMETHING_TO_SAY_'))}" onfocus="startCheckNum_quick($(this))"
                                 onblur="endCheckNum_quick()"></textarea>
                    <hr style="margin:0 15px 0 15px;">
                    <div class="pull-left" style="margin-left: 15px;margin-top: 10px">
                        <a title="插入表情" href="javascript:" onclick="insertFace($(this))" data-role="insert_face">
                            <i class="weibo-type-icon icon-face" ></i>
                        </a>
                        <if condition="modC('CAN_IMAGE',1)">
                            <a title="插入图片" href="javascript:" id="insert_image" onclick="insert_image.insertImage(this)" data-role="hook_show">
                                <i class="weibo-type-icon icon-pic" ></i>
                            </a>
                        </if>
                        <if condition="modC('CAN_TOPIC',1)">
                            <a title="插入话题" href="javascript:" onclick="insert_topic.InsertTopic(this)">
                                <i class="weibo-type-icon icon-topic" ></i>
                            </a>
                        </if>
                        {:hook('weiboType')}
                        <div id="emot_content" class="emot_content"></div>
                        <div id="hook_show" class="emot_content"></div>

                    </div>


                    <div class="pull-right">
                        {:use_topic()}     </div>
                </div>
                <div class="col-xs-2" style="border-left: 1px solid #ddd;padding-left: 0;padding-right: 0;height: 120px;">
                    <a  data-role="send_weibo" class="btn-post"
                           style="border:none;width: 110px" data-url="{:U('Weibo/Index/doSend')}"></a>

                </div>
            </div>

        </div>

    </div>
    <script>
        $(function () {
           $('#weibo_content').focus(function () {
               $('#input_tip').show()
           });
            $('#weibo_content').blur(function () {
                $('#input_tip').hide()
            })
        });
        var ID_setInterval;
        function checkNum_quick(obj) {
            var value = obj.val();
            var value_length = value.length;
            var can_in_num = initNum - value_length;
            if (can_in_num < 0) {
                value = value.substr(0, initNum);
                obj.val(value);
                can_in_num = 0;
            }
            var html =  can_in_num + "/"+initNum;
            $('.show_num_quick').html(html);
        }
        function startCheckNum_quick(obj) {
            ID_setInterval = setInterval(function () {
                checkNum_quick(obj);
            }, 250);
        }
        function endCheckNum_quick() {
            clearInterval(ID_setInterval);
        }

        $('[data-role="insert_face"]').click(function() {
            insert_image.close();
        });
        $('[data-role="hook_show"]').click(function() {
            close_face();
        })
    </script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/ext/webuploader/js/webuploader.js"></script>
    <link href="__PUBLIC__/js/ext/webuploader/css/webuploader.css" type="text/css" rel="stylesheet">
</if>


